import request from '@/utils/request'
import { downFile } from '@/utils/request'

/**
 * 根据查询出货
 * @param {Id}
 */
export function selectlist(query) {
	return request({
		url: 'productSerch/selectlist/',
		method: 'get',
		params: query,
	})
}

//查询数量
export function selectCount(query) {
	return request({
		url: 'productSerch/selectCount/',
		method: 'get',
		params: query,
	})
}

//查询所有MaterialNo
export function selectMaterialNoAll() {
	return request({
		url: 'productSerch/selectMaterialNoAll/',
		method: 'get',
	})
}

// 导出入库列表
export async function exportbaseDefectitem(query) {
	await downFile('base/baseDefectitem/export', { ...query })
}